import Vue from 'vue';
import Vuex from 'vuex';

import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';

Vue.use(Vuex);

const state = {
    todos: [
        {
            id: 10000,
            done: false,
            text: '我有个大胆的想法'
        },
        {
            id: 10001,
            done: true,
            text: '打印毕业设计很多稿'
        }
    ]
};

export default new Vuex.Store({
    state,
    getters,
    actions,
    mutations
});


